var net = require("net");
var netpkg = require("./netpkg");

var server = net.createServer(function(client_sock){

    // client_sock.on("error", function(err) {
	// 	console.log("error", err);
	// });
});

server.on("listening", function() {
	console.log("start listening...");
});

server.on("error",function(err){
    console.log("listen error",err);
    throw err;
});

server.on("close",function(){
    console.log("server stop listener");
});

server.listen({
    port:6080,
    host:"127.0.0.1",
    exclusive:true,
});